package com.jxc.model.po;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "QXGL_LIMIT")
public class Limit extends IdEntity implements Serializable  {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 代理商或经销商
	 */
	private User user;
	/**
	 * 下级用户个数
	 */
	private Long lowerUserNum;
	/**
	 * 仓库个数
	 */
	private Long repertoryNum;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "USER_ID")
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	@Column(name = "LOWER_USER_NUM")
	public Long getLowerUserNum() {
		return lowerUserNum;
	}
	public void setLowerUserNum(Long lowerUserNum) {
		this.lowerUserNum = lowerUserNum;
	}
	@Column(name = "REPERTORY_NUM")
	public Long getRepertoryNum() {
		return repertoryNum;
	}
	public void setRepertoryNum(Long repertoryNum) {
		this.repertoryNum = repertoryNum;
	}
	
}
